package com.zfl.springbootquickstart.controller;

import com.zfl.springbootquickstart.po.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class HelloController {

    @Autowired
    Student student;

    @RequestMapping("/hello")
    public Student hello(){
        return this.student;
    }
}
